<?php
    $DB = mysqli_connect('kvd_mysql', 'root', 'root', 'kvd');
    try {
        $sql = "create table if not exists admin (
        id int PRIMARY KEY AUTO_INCREMENT,
        phone VARCHAR(255) NOT NULL UNIQUE,
        email VARCHAR(255),
        password VARCHAR(255),
        permission int,
        created VARCHAR(255),
        updated VARCHAR(255)
        );";
        $DB->query($sql);
        $sql = "INSERT INTO admin (phone, email, password, permission, created, updated )
                        VALUES
                        ('79990000000', 'test@test.test', '5f4dcc3b5aa765d61d8327deb882cf99', 0, '01.11.2023', '01.11.2023');";
        $DB->query($sql);
    } catch (Exception $exception) {
        echo $exception;
    }
    $DB->close();
    unset($DB);